package com.jfcloud.mall.product.rpc.feign;

import com.jfcloud.common.constants.ServiceNames;
import com.jfcloud.common.http.RespData;
import com.jfcloud.common.http.RespDataT;
import com.jfcloud.mall.product.domain.dto.JfcloudStorage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author zhaojunfu
 * @Title: StorageServiceClient
 * @ProjectName jfcloud
 * @Description: TODO
 * @date 2020/9/915:34
 */
@FeignClient(name = ServiceNames.mall_storage)
public interface StorageServiceClient {

    @GetMapping(path = "/storage/getStorages")
    RespData getStorages(@RequestParam("productIds") Long[] productIds);

    @GetMapping(path = "/storage/getStorages")
    RespDataT<List<JfcloudStorage>> getStoragesByEntity(@RequestParam("productIds") Long[] productIds);
}
